package edu.pitt.cs.cs2410pj2.datamodel;

/**
 * Data structure of a block in L2 Actually we can just use inheritance since it
 * is similar to L1Cache
 * 
 * To make things simple, just decide not to use the extends stuff
 * 
 * @author zhangfan
 * 
 */
public class L2CacheEntry {
	// The only difference with L1CacheEntry here is that it does not need a
	// state as DirectoryEntry holds it
	private int cacheTag;
	private String data;
	private int updateTime;

	public int getCacheTag() {
		return cacheTag;
	}

	public void setCacheTag(int cacheTag) {
		this.cacheTag = cacheTag;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public int getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(int updateTime) {
		this.updateTime = updateTime;
	}
	
	public String toString() {
		String msg = "";
		msg = "updateTime:"+updateTime;
		return msg;
	}
}
